﻿<phone:PhoneApplicationPage
    x:Class="TheVerge.Phone.Pages.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:con="clr-namespace:TheVerge.Phone.Controls"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <StackPanel Orientation="Vertical">
            <StackPanel.Resources>
                <Style x:Key="horSP" TargetType="StackPanel">
                    <Setter Property="Orientation" Value="Horizontal" />
                    <Setter Property="Margin" Value="{StaticResource PhoneMargin}" />
                </Style>
                <Style TargetType="HyperlinkButton">
                    <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}" />
                </Style>
            </StackPanel.Resources>
            <con:HeaderControl />

            <TextBlock Text="about" Style="{StaticResource PhoneTextTitle1Style}" Foreground="{StaticResource PhoneAccentBrush}" />

            <TextBlock x:Name="tbDescription" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap"  />

            <StackPanel Orientation="Vertical" Margin="12,0" Grid.Row="3">
                <StackPanel Orientation="Vertical" Margin="0,12">

                    <StackPanel Style="{StaticResource horSP}">
                        <TextBlock Text="Version:   " />
                        <TextBlock x:Name="version" Foreground="{StaticResource PhoneAccentBrush}" FontWeight="Bold" />
                    </StackPanel>

                    <StackPanel Style="{StaticResource horSP}">
                        <TextBlock Text="Website:" />
                        <HyperlinkButton Content="http://vnet.codeplex.com/" NavigateUri="http://vnet.codeplex.com/" TargetName="_Blank" />
                    </StackPanel>

                    <HyperlinkButton Margin="{StaticResource PhoneMargin}"
                        HorizontalAlignment="Center" Content="Release Notes" NavigateUri="http://vnet.codeplex.com/documentation" TargetName="_Blank" />
                </StackPanel>

                
            </StackPanel>
        </StackPanel>

        <StackPanel Orientation="Vertical" Margin="0,12" Grid.Row="1">
            <Button Content="Rate this app" Click="Rate_Click" />
            <Button Content="More from MasterDevs" Click="MoreFrom_Click" />
        </StackPanel>
    </Grid>

</phone:PhoneApplicationPage>